USE [DeltaFlex]
GO

IF (OBJECT_ID('dbo.CONCEPTE_OT')) IS NOT NULL
	DROP TABLE dbo.CONCEPTE_OT
GO

SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE CONCEPTE_OT(
	IDCONCEPTE int NOT NULL,
	IDORDRE int NOT NULL,
	QUANTITAT int NOT NULL,
	IDARTICLE int NOT NULL,
	AMPLE decimal(8,4) NOT NULL,
	ALT decimal(8,4) NOT NULL,
	IMPORT decimal(8,4) NOT NULL
	
 CONSTRAINT PK_CONCEPTE_OT PRIMARY KEY CLUSTERED 
(
	IDCONCEPTE ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

IF (OBJECT_ID('SEQ_CONCEPTE_OT')IS NOT NULL)
	DROP SEQUENCE SEQ_CONCEPTE_OT
GO

CREATE SEQUENCE SEQ_CONCEPTE_OT
	START WITH 1
    INCREMENT BY 1
    MINVALUE 1
    MAXVALUE 9223372036854775807;

GO

